package pl.edu.uj.tcs.blef.utils;

public abstract class AbstractBet implements Bet {

	@Override
	public int compareTo(Bet o) {
		if(this.getPriority() < o.getPriority()) return -1;
		else if(this.getPriority() == o.getPriority()) return 0;
		else return 1;
	}

	@Override
	public abstract String getCode();

	@Override
	public abstract String getName();

	@Override
	public abstract int getPriority();

}
